<%@ page language="java" pageEncoding="UTF-8" buffer="16kb"%>
<%@ include file="/base.jsp"%>
<%@ include file="/module/taglibs.jsp"%>
<%@ include file="/module/nocache.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<%@ include file="/module/js.jsp"%>
<%@ include file="/module/orderField.jsp"%>
<script type="text/javascript" src="${basePath}/js/jquery.Huploadify.js"></script>
<link href="${basePath}/css/Huploadify.css" rel="stylesheet">
	<style>
table label.error {
	margin-left: 5px;
	width: auto;
	display: inline;
	color: red;
}
</style>
</head>
<body>
	<form action="#" name="Form" id="Form" method="post">
		<input type="hidden" name="gGID" id="gGID" value="${partyNotice.gGID}" />
		<table cellpadding="0" cellspacing="0" border="0" class="table-border"
			width="95%">
			<tr>
				<td class="table-header" colspan="4">公示公告</td>
			</tr>
			<tr>
				<td class="table-titleTD" style="width: 15%">标题：</td>
				<td class="table-contentTD" colspan="3" style="width: auto;">
				${partyNotice.subject }
				</td>
			</tr>
			<tr>
				<td class="table-titleTD" style="width: 15%">是否置顶：</td>
				<td class="table-contentTD" style="width: 35%">
				   ${partyNotice.onTop }
				</td>
				<td class="table-titleTD" style="width: 15%"><font style="color: red;">*</font>是否发布：</td>
				<td class="table-contentTD" style="width: 35%">
			      ${partyNotice.issued }
			    </td>
			</tr>
			<tr>
			   <td class="table-titleTD" style="width: 15%">图片公告：</td>
				<td class="table-contentTD" colspan="3" style="width: auto;">
				  ${partyNotice.isImgLink }
			</td>
			</tr>
			<tr id="view" style="display: none;">
			    <td class="table-titleTD" style="width: 15%">图片上传展示：</td>
				<td class="table-contentTD" colspan="3" style="width: auto;">
				  <%--  <a href="${basePath}/partyNotice/IoReadImage/${partyNotice.imgUrl}" target="_blank"> --%>
						<img src="${basePath}/common/IoReadImage?imgName=${partyNotice.imgUrl}" height="100px" width="120px"/>
					    <!-- </a> -->
				</td>
			</tr>
			<tr>
				<td class="table-titleTD" style="width: 15%">创建人：</td>
				<td class="table-contentTD" style="width: 35%">
				  ${partyNotice.creatorName }
				</td>
				<td class="table-titleTD" style="width: 15%">创建时间：</td>
				<td class="table-contentTD" style="width: 35%">
				${partyNotice.createTime }
				</td>
			</tr>
			<tr>
				<td class="table-titleTD" style="width: 15%">正文内容：</td>
				<td class="table-contentTD" colspan="3" style="width: auto;">
					${partyNotice.contents }
				</td>
			</tr>
		</table>
		<br/>

		<table cellpadding="1" cellspacing="1" border="0" align="left">
			<c:if test="${_login_user_type==2}">
			<tr>
				 <td>
				    <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"ZHDJ_DJZX_DJZX\")%>" key="modify">
                     <input type="button" id="btnUpdate" name="btnUpdate"  value="编辑" class="inputButton" />
                </kl:permission>
				 </td>
				<td><input type="button" id="returnBut" class="inputButton"
					value="返回" style="text-align: center;" /></td>
			</tr>
		 </c:if>
		</table>
	</form>
	<script>
				$(document).ready(function() {
				
					
					 var isImgLink = "${partyNotice.isImgLink}";
			    		if(isImgLink == '是') {
			    			$("#view").show();
			    		}
					/* 修改  */
					$("#btnUpdate").click(function() {
						/*  alert("zBID"+${partyBranch.zBID});  */
						window.location.href='${basePath}/partyNotice/edit?gGID='+${partyNotice.gGID};
					});
					/* 返回 */
					$("#returnBut").click(function() {
			
			 			   window.location.href='${basePath}/partyNotice/list';
			 		});
				});
				
     </script>
</body>
</html>
